<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html style="
background-image: URL('/resources/images/login_bg.jpg');
background-position: center;
background-repeat: no-repeat;
background-attachment: fixed;
">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="shortcut icon" href="${contextPath}/resources/images/favicon.png" type="image/png">
    <c:set var="name" value="${fromDto.name}" scope="application"/>
    <title>登录</title>

    <link href="${contextPath}/resources/css/style.default.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="${contextPath}/resources/js/html5shiv.js"></script>
    <script src="${contextPath}/resources/js/respond.min.js"></script>
    <script type="text/javascript">
        window.location.href = "http://windows.microsoft.com/zh-cn/internet-explorer/ie-11-worldwide-languages";
    </script>
    <![endif]-->
</head>

<body class="signin" style="background:none;">
<section style="background:none;">
    <div class="signinpanel">
        <div class="row">
            <div class="col-md-7">
                <div class="signin-info">
                    <div class="logopanel">
                        <h1><span>[</span> ${fromDto.name} <span>]</span></h1>
                    </div>
                    <!-- logopanel -->

                    <div class="mb20"></div>

                    <h5><strong>${fromDto.notes}</strong></h5>
                    <ul>
                        <%--<li><i class="fa fa-arrow-circle-o-right mr5"></i> Fully Responsive Layout</li>--%>
                    </ul>
                    <div class="mb20"></div>
                    <%--<strong>没有账号? <a href="#">联系管理员开通</a></strong>--%>
                </div>
                <!-- signin0-info -->
            </div>
            <!-- col-sm-7 -->
            <div class="col-md-5">
                <form action="${contextPath}/admin/login.htm" method="post" style="background:#fff;">
                    <h4 class="nomargin">登录</h4>
                    <c:if test="${empty shiroLoginFailure}">
                        <p class="mt5 mb20">请使用您的账号密码登录.</p>
                    </c:if>
                    <c:if test="${not empty shiroLoginFailure}">
                        <p class="mt5 mb20 text-danger">用户名或密码错误.</p>
                    </c:if>
                    <c:if test="${not empty param.err}">
                        <p class="mt5 mb20 text-danger">您无权限进行此操作.</p>
                    </c:if>

                    <input type="text" name="username" class="form-control uname" placeholder="Username"/>
                    <input type="password" name="password" class="form-control pword" placeholder="Password"/>

                    <button class="btn btn-success btn-block">登录</button>
                </form>
            </div>
            <!-- col-sm-5 -->
        </div>
        <!-- row -->

        <%--<div class="signup-footer">--%>
        <%--<div class="pull-left">--%>
        <%--&copy; 2016. All Rights Reserved.--%>
        <%--</div>--%>
        <%--</div>--%>

    </div>
    <!-- signin -->
</section>

<script src="${contextPath}/resources/js/jquery-1.11.1.min.js"></script>
<script src="${contextPath}/resources/js/jquery-migrate-1.2.1.min.js"></script>
<script src="${contextPath}/resources/js/bootstrap.min.js"></script>
<script src="${contextPath}/resources/js/modernizr.min.js"></script>
<script src="${contextPath}/resources/js/jquery.sparkline.min.js"></script>
<script src="${contextPath}/resources/js/jquery.cookies.js"></script>

<script src="${contextPath}/resources/js/toggles.min.js"></script>
<script src="${contextPath}/resources/js/retina.min.js"></script>

<script src="${contextPath}/resources/js/custom.js"></script>
<script>
    jQuery(document).ready(function () {
        var c = jQuery.cookie('change-skin');
        if (c && c == 'greyjoy') {
            jQuery('.btn-success').addClass('btn-orange').removeClass('btn-success');
        } else if (c && c == 'dodgerblue') {
            jQuery('.btn-success').addClass('btn-primary').removeClass('btn-success');
        } else if (c && c == 'katniss') {
            jQuery('.btn-success').addClass('btn-primary').removeClass('btn-success');
        }
    });
</script>
<img class="hide" src="${contextPath}/admin/index.htm"/>
</body>
</html>
